//
#include "stdafx.h"
#include "MainCommand.h"
#include "MSDNApp.h"
#include "MSDNView.h"


CMainCommand::CMainCommand(void)
{

}


CMainCommand::~CMainCommand(void)
{

}


void CMainCommand::OnHelp(UINT nCmdID, saf::ICommandItem *pCmdUI)
{

}




void CMainCommand::OnAppExit(UINT nCmdID, saf::ICommandItem *pCmdUI)
{
	theApp.GetComFramework()->Quit();
}
void CMainCommand::OnAbout(UINT nCmdID, saf::ICommandItem *pCmdUI)
{
	::MessageBox(::GetActiveWindow(), _T("About MSDN"), _T("MSDN"), MB_OK);
}




void CMainCommand::OnQueryAppExit(saf::ICommandItem *pCmdUI)
{
	pCmdUI->put_Enable(VARIANT_TRUE);
}


void CMainCommand::OnQueryHelp(saf::ICommandItem *pCmdUI)
{
	pCmdUI->put_Enable(VARIANT_TRUE);
}


void CMainCommand::OnQueryAppAbout(saf::ICommandItem *pCmdUI)
{
	pCmdUI->put_Enable(VARIANT_TRUE);
}


